package com.pinoc.demo.config;

import com.alibaba.nacos.api.config.annotation.NacosValue;
import org.springframework.context.annotation.Configuration;

/**
 * @author yinpeng10
 * @desc nacos: DATA_ID=Config, env=tst
 *
 */
@Configuration
public class Config {

	public static String env;

	@NacosValue(value = "${env:dev}", autoRefreshed = true)
	public void setEnv(String env) {
		Config.env = env;
	}
}
